package com.itclass.auth.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itclass.auth.pojo.db.SysUser;
import com.itclass.auth.pojo.db.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    /**
     * 根据用户id查询用户角色
     * @param userId
     * @return
     */
    List<String> queryUserRoleByUserId(Long userId);

    SysUser queryUserByUsername(String username);
    SysUser queryUserByOpenId(String openId);
}